package com.property.demo.service;

import com.property.demo.model.Parking;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ParkingService {
    
    List<Parking> findAll();
    
    Page<Parking> findAll(Pageable pageable);
    
    Page<Parking> findByFilters(Long communityId, String name, String status, Pageable pageable);
    
    Parking findById(Long id);
    
    Parking save(Parking parking);
    
    Parking update(Long id, Parking parkingDetails);
    
    void delete(Long id);
    
    List<Parking> findByCommunityId(Long communityId);
    
    List<Parking> findByNameContaining(String name);
    
    List<Parking> findByNameContainingAndCommunityId(String name, Long communityId);
    
    List<Parking> findByStatus(String status);
} 